/*
 * @Author: JohnYang
 * @Date: 2020-10-24 17:37:30
 * @LastEditors: JohnYang
 * @LastEditTime: 2020-11-07 15:03:50
 */

import Vue from 'vue'
import Component from 'vue-class-component'
import { Prop } from 'vue-property-decorator'

@Component({
  name: 'Raw',
})
export default class Raw extends Vue {
  @Prop({
    required: true,
  })
  value

  render(h) {
    var { style, domProps, tagName, ...rest } = this.$attrs
    return h(
      tagName,
      {
        style,
        domProps,
      },
      this.value
    )
  }
}
